<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>百分比响应式布局</title>

    <style>
        * {
            box-sizing: border-box;
        }
        
        body>* {
            width: 95%;
            height: auto;
            margin: 0 auto;
            margin-top: 10px;
            border: 1px solid #000;
            padding: 5px;
        }
        
        header {
            height: 50px;
            background-color: aqua;
        }
        
        section {
            height: 300px;
            border: none;
            padding: 0;
        }
        
        footer {
            height: 30px;
            background-color: #777;
        }
        
        section>* {
            height: 100%;
            padding: 5px;
            float: left;
            border: 1px solid #000;
        }
        
        aside {
            width: 25%;
            background-color: bisque;
        }
        
        article {
            width: 74%;
            margin-left: 1%;
            background-color: pink;
        }
        
        @media screen and (max-width: 575px) {
            aside {
                display: none;
            }
            article {
                width: 100%;
                margin-left: 0;
            }
        }
    </style>
</head>

<body>
    <header>头部</header>
    <nav>导航</nav>
    <section>
        <aside>侧边栏</aside>
        <article>文章</article>
    </section>
    <footer>页脚</footer>
</body>

</html>